<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>springCloud配置1</title>
    <link href="../../../static/css/controls.css" rel="stylesheet"/>
    <link href="../../../static/css/engine.css" rel="stylesheet">
    <script src="../../../bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system2/component/springCloud/SpringCloudModule'"></script>
</head>
<body ng-controller="SpringCloudController" style="height: auto">
<div class="engine-popup">
    <form name="SpringCloudModelForm" g-validator="SpringCloudModel_{{add?'Save':'Update'}}" data-invalid-msg="tooltipMessenger">
        <input type="hidden" name="id" ng-model="springCloud.id"/>
        <input type="hidden" name="projectId" ng-model="springCloud.projectId"/>
        <input type="hidden" name="projectCode" ng-model="springCloud.projectCode"/>
        <div class="attribute-form-group" style="width: 33%;float: left">
            <div>服务名称:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="springCloudName" ng-model="springCloud.springCloudName" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group" style="width:33%;float: left">
            <div>请求地址:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="requestMapping" ng-model="springCloud.requestMapping" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group" style="width: 20%;float: left;">
            <div>请求类型:</div>
            <select name="requestType" ng-model="springCloud.requestType" style="width:100%;height: 27px">
                <option value="get">GET</option>
                <option value="post">POST</option>
                <option value="put">PUT</option>
                <option value="delete">DELETE</option>
            </select>
            <div class="clear"></div>
        </div>
        <div style="display: inline-flex;">
            <div class="attribute-form-group">
                <div>请求结构:</div>
                <div class="attribute-form-group-r">
                    <textarea  name="requestConfig" style="height: 190px" ng-model="springCloud.requestConfig"  rows="10" >
                    </textarea>
                </div>
                <div class="clear"></div>
            </div>
            <div class="attribute-form-group"  style="margin-left: 28px">
                <div >入参配置:</div>
                <div class="attribute-form-group-r" >
                    <textarea  name="params" style="height: 190px" ng-model="springCloud.params"  rows="10" >
                    </textarea>
                </div>
                <div class="clear"></div>
            </div>
            <div class="attribute-form-group" style="margin-left: 28px">
                <div >结果处理表达式:</div>
                <div class="attribute-form-group-r">
                    <textarea  name="requestResult" style="height: 190px" ng-model="springCloud.requestResult"  rows="10" >
                     </textarea>
                </div>
                <div class="clear"></div>
            </div>
        </div>

        <div class="tck-line"></div>
        <div class="tck-b">
            <button type="button" class="engine-btn-default" ng-click="submit()">确认</button>
            <button type="button" class="engine-btn-default" ng-click="cancel()">取消</button>
        </div>
    </form>
</div>
</body>
</html>